import request from '@/utils/request'

// 查询API调用统计列表
export function listInterfaceCallStatistics(query) {
  return request({
    url: '/interfaces/interfaceCallStatistics/list',
    method: 'get',
    params: query
  })
}

// 查询API调用统计详细
export function getInterfaceCallStatistics(id) {
  return request({
    url: '/interfaces/interfaceCallStatistics/' + id,
    method: 'get'
  })
}

// 新增API调用统计
export function addInterfaceCallStatistics(data) {
  return request({
    url: '/interfaces/interfaceCallStatistics',
    method: 'post',
    data: data
  })
}

// 修改API调用统计
export function updateInterfaceCallStatistics(data) {
  return request({
    url: '/interfaces/interfaceCallStatistics',
    method: 'put',
    data: data
  })
}

// 删除API调用统计
export function delInterfaceCallStatistics(id) {
  return request({
    url: '/interfaces/interfaceCallStatistics/' + id,
    method: 'delete'
  })
}
